﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Customers.master" AutoEventWireup="true" CodeFile="TrangChu.aspx.cs" Inherits="TrangChu" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DataList ID="DataList1" runat="server" DataKeyField="TenSP" DataSourceID="AccessDataSource1" RepeatColumns="4" RepeatDirection="Horizontal">
        <ItemTemplate>
        <div class="dtList">
            <span class="popup">
            <a href="TrangChu.aspx?MaSP=<%# Eval("MaSP") %>&q=1" style="float:right; padding-right:5px; padding-top:5px">
                <asp:Image ID="XoaAn" runat="server" ImageUrl="~/images/Delete_Product.png" Width="25px" /><span>Xóa sản phẩm</span></a></span>
            <span class="popup">
            <a href="TrangThaiSanPham.aspx?MaSP=<%# Eval("MaSP") %>&q=1" style="float:right; padding-right:5px; padding-top:5px">
                <asp:Image ID="SuaAn" runat="server" ImageUrl="~/images/Edit.png" Width="25px" /><span>Sửa sản phẩm</span></a></span>
            <a href="ChiTietSanPham.aspx?TenSP=<%# Eval("TenSP") %>&q=0">
            <asp:Image ID="Image1" runat="server" Height="190px" 
                ImageUrl='<%# Eval("Hinh", "{0}") %>' Width="190px" /></a>
            <br />
            <asp:Label ID="TenSPLabel" runat="server" Text='<%# Eval("TenSP") %>' 
                ForeColor="#0066FF" Font-Bold="True" CssClass="tenSP" />
            <br />
            <asp:Label ID="TinhTrangLabel" runat="server" Text='<%# Eval("TinhTrang") %>' ForeColor="Gray" Font-Size="12px" />
            <br />
            <asp:Label ID="GiaLabel" runat="server" Text='<%# Eval("Gia","{0:0,000}") %>' ForeColor="Red" Font-Size="12px" />VND
            <br /> 
            <br />
            <img src="images/Like.png" height="15px" width="15px" style="vertical-align:bottom" />
            <asp:Label ID="LikeLabel" runat="server" Text='<%# Eval("LikeSanPham") %>'  ForeColor="#04AEDA" Font-Bold="true"/>            
            &nbsp;&nbsp;&nbsp;&nbsp;
            <img src="images/Viewers.png" height="15px" width="15px" style="vertical-align:bottom" />
            <asp:Label ID="Xemlabel" runat="server" Text='<%# Eval("XemSanPham") %>' ForeColor="#04AEDA" Font-Bold="true" />            
            <br />
            <br />
            </div>
        </ItemTemplate>
    </asp:DataList>
    <asp:AccessDataSource ID="AccessDataSource1" runat="server"
        DataFile="~/App_Data/Data.mdb"
        SelectCommand="SELECT MaSP, TenSP, HangSX, TinhTrang, Gia, Hinh, LikeSanPham, XemSanPham FROM SanPham WHERE (KN <> - 1)">
    </asp:AccessDataSource>
   
</asp:Content>

